package com.lsy.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class UserExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public UserExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andUseridIsNull() {
            addCriterion("userId is null");
            return (Criteria) this;
        }

        public Criteria andUseridIsNotNull() {
            addCriterion("userId is not null");
            return (Criteria) this;
        }

        public Criteria andUseridEqualTo(Integer value) {
            addCriterion("userId =", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotEqualTo(Integer value) {
            addCriterion("userId <>", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThan(Integer value) {
            addCriterion("userId >", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThanOrEqualTo(Integer value) {
            addCriterion("userId >=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThan(Integer value) {
            addCriterion("userId <", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThanOrEqualTo(Integer value) {
            addCriterion("userId <=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridIn(List<Integer> values) {
            addCriterion("userId in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotIn(List<Integer> values) {
            addCriterion("userId not in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridBetween(Integer value1, Integer value2) {
            addCriterion("userId between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotBetween(Integer value1, Integer value2) {
            addCriterion("userId not between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUtelIsNull() {
            addCriterion("uTel is null");
            return (Criteria) this;
        }

        public Criteria andUtelIsNotNull() {
            addCriterion("uTel is not null");
            return (Criteria) this;
        }

        public Criteria andUtelEqualTo(String value) {
            addCriterion("uTel =", value, "utel");
            return (Criteria) this;
        }

        public Criteria andUtelNotEqualTo(String value) {
            addCriterion("uTel <>", value, "utel");
            return (Criteria) this;
        }

        public Criteria andUtelGreaterThan(String value) {
            addCriterion("uTel >", value, "utel");
            return (Criteria) this;
        }

        public Criteria andUtelGreaterThanOrEqualTo(String value) {
            addCriterion("uTel >=", value, "utel");
            return (Criteria) this;
        }

        public Criteria andUtelLessThan(String value) {
            addCriterion("uTel <", value, "utel");
            return (Criteria) this;
        }

        public Criteria andUtelLessThanOrEqualTo(String value) {
            addCriterion("uTel <=", value, "utel");
            return (Criteria) this;
        }

        public Criteria andUtelLike(String value) {
            addCriterion("uTel like", value, "utel");
            return (Criteria) this;
        }

        public Criteria andUtelNotLike(String value) {
            addCriterion("uTel not like", value, "utel");
            return (Criteria) this;
        }

        public Criteria andUtelIn(List<String> values) {
            addCriterion("uTel in", values, "utel");
            return (Criteria) this;
        }

        public Criteria andUtelNotIn(List<String> values) {
            addCriterion("uTel not in", values, "utel");
            return (Criteria) this;
        }

        public Criteria andUtelBetween(String value1, String value2) {
            addCriterion("uTel between", value1, value2, "utel");
            return (Criteria) this;
        }

        public Criteria andUtelNotBetween(String value1, String value2) {
            addCriterion("uTel not between", value1, value2, "utel");
            return (Criteria) this;
        }

        public Criteria andUpasswordIsNull() {
            addCriterion("uPassWord is null");
            return (Criteria) this;
        }

        public Criteria andUpasswordIsNotNull() {
            addCriterion("uPassWord is not null");
            return (Criteria) this;
        }

        public Criteria andUpasswordEqualTo(String value) {
            addCriterion("uPassWord =", value, "upassword");
            return (Criteria) this;
        }

        public Criteria andUpasswordNotEqualTo(String value) {
            addCriterion("uPassWord <>", value, "upassword");
            return (Criteria) this;
        }

        public Criteria andUpasswordGreaterThan(String value) {
            addCriterion("uPassWord >", value, "upassword");
            return (Criteria) this;
        }

        public Criteria andUpasswordGreaterThanOrEqualTo(String value) {
            addCriterion("uPassWord >=", value, "upassword");
            return (Criteria) this;
        }

        public Criteria andUpasswordLessThan(String value) {
            addCriterion("uPassWord <", value, "upassword");
            return (Criteria) this;
        }

        public Criteria andUpasswordLessThanOrEqualTo(String value) {
            addCriterion("uPassWord <=", value, "upassword");
            return (Criteria) this;
        }

        public Criteria andUpasswordLike(String value) {
            addCriterion("uPassWord like", value, "upassword");
            return (Criteria) this;
        }

        public Criteria andUpasswordNotLike(String value) {
            addCriterion("uPassWord not like", value, "upassword");
            return (Criteria) this;
        }

        public Criteria andUpasswordIn(List<String> values) {
            addCriterion("uPassWord in", values, "upassword");
            return (Criteria) this;
        }

        public Criteria andUpasswordNotIn(List<String> values) {
            addCriterion("uPassWord not in", values, "upassword");
            return (Criteria) this;
        }

        public Criteria andUpasswordBetween(String value1, String value2) {
            addCriterion("uPassWord between", value1, value2, "upassword");
            return (Criteria) this;
        }

        public Criteria andUpasswordNotBetween(String value1, String value2) {
            addCriterion("uPassWord not between", value1, value2, "upassword");
            return (Criteria) this;
        }

        public Criteria andUrealnameIsNull() {
            addCriterion("uRealName is null");
            return (Criteria) this;
        }

        public Criteria andUrealnameIsNotNull() {
            addCriterion("uRealName is not null");
            return (Criteria) this;
        }

        public Criteria andUrealnameEqualTo(String value) {
            addCriterion("uRealName =", value, "urealname");
            return (Criteria) this;
        }

        public Criteria andUrealnameNotEqualTo(String value) {
            addCriterion("uRealName <>", value, "urealname");
            return (Criteria) this;
        }

        public Criteria andUrealnameGreaterThan(String value) {
            addCriterion("uRealName >", value, "urealname");
            return (Criteria) this;
        }

        public Criteria andUrealnameGreaterThanOrEqualTo(String value) {
            addCriterion("uRealName >=", value, "urealname");
            return (Criteria) this;
        }

        public Criteria andUrealnameLessThan(String value) {
            addCriterion("uRealName <", value, "urealname");
            return (Criteria) this;
        }

        public Criteria andUrealnameLessThanOrEqualTo(String value) {
            addCriterion("uRealName <=", value, "urealname");
            return (Criteria) this;
        }

        public Criteria andUrealnameLike(String value) {
            addCriterion("uRealName like", value, "urealname");
            return (Criteria) this;
        }

        public Criteria andUrealnameNotLike(String value) {
            addCriterion("uRealName not like", value, "urealname");
            return (Criteria) this;
        }

        public Criteria andUrealnameIn(List<String> values) {
            addCriterion("uRealName in", values, "urealname");
            return (Criteria) this;
        }

        public Criteria andUrealnameNotIn(List<String> values) {
            addCriterion("uRealName not in", values, "urealname");
            return (Criteria) this;
        }

        public Criteria andUrealnameBetween(String value1, String value2) {
            addCriterion("uRealName between", value1, value2, "urealname");
            return (Criteria) this;
        }

        public Criteria andUrealnameNotBetween(String value1, String value2) {
            addCriterion("uRealName not between", value1, value2, "urealname");
            return (Criteria) this;
        }

        public Criteria andUidentificationIsNull() {
            addCriterion("uIdentification is null");
            return (Criteria) this;
        }

        public Criteria andUidentificationIsNotNull() {
            addCriterion("uIdentification is not null");
            return (Criteria) this;
        }

        public Criteria andUidentificationEqualTo(String value) {
            addCriterion("uIdentification =", value, "uidentification");
            return (Criteria) this;
        }

        public Criteria andUidentificationNotEqualTo(String value) {
            addCriterion("uIdentification <>", value, "uidentification");
            return (Criteria) this;
        }

        public Criteria andUidentificationGreaterThan(String value) {
            addCriterion("uIdentification >", value, "uidentification");
            return (Criteria) this;
        }

        public Criteria andUidentificationGreaterThanOrEqualTo(String value) {
            addCriterion("uIdentification >=", value, "uidentification");
            return (Criteria) this;
        }

        public Criteria andUidentificationLessThan(String value) {
            addCriterion("uIdentification <", value, "uidentification");
            return (Criteria) this;
        }

        public Criteria andUidentificationLessThanOrEqualTo(String value) {
            addCriterion("uIdentification <=", value, "uidentification");
            return (Criteria) this;
        }

        public Criteria andUidentificationLike(String value) {
            addCriterion("uIdentification like", value, "uidentification");
            return (Criteria) this;
        }

        public Criteria andUidentificationNotLike(String value) {
            addCriterion("uIdentification not like", value, "uidentification");
            return (Criteria) this;
        }

        public Criteria andUidentificationIn(List<String> values) {
            addCriterion("uIdentification in", values, "uidentification");
            return (Criteria) this;
        }

        public Criteria andUidentificationNotIn(List<String> values) {
            addCriterion("uIdentification not in", values, "uidentification");
            return (Criteria) this;
        }

        public Criteria andUidentificationBetween(String value1, String value2) {
            addCriterion("uIdentification between", value1, value2, "uidentification");
            return (Criteria) this;
        }

        public Criteria andUidentificationNotBetween(String value1, String value2) {
            addCriterion("uIdentification not between", value1, value2, "uidentification");
            return (Criteria) this;
        }

        public Criteria andUoccupationIsNull() {
            addCriterion("uOccupation is null");
            return (Criteria) this;
        }

        public Criteria andUoccupationIsNotNull() {
            addCriterion("uOccupation is not null");
            return (Criteria) this;
        }

        public Criteria andUoccupationEqualTo(String value) {
            addCriterion("uOccupation =", value, "uoccupation");
            return (Criteria) this;
        }

        public Criteria andUoccupationNotEqualTo(String value) {
            addCriterion("uOccupation <>", value, "uoccupation");
            return (Criteria) this;
        }

        public Criteria andUoccupationGreaterThan(String value) {
            addCriterion("uOccupation >", value, "uoccupation");
            return (Criteria) this;
        }

        public Criteria andUoccupationGreaterThanOrEqualTo(String value) {
            addCriterion("uOccupation >=", value, "uoccupation");
            return (Criteria) this;
        }

        public Criteria andUoccupationLessThan(String value) {
            addCriterion("uOccupation <", value, "uoccupation");
            return (Criteria) this;
        }

        public Criteria andUoccupationLessThanOrEqualTo(String value) {
            addCriterion("uOccupation <=", value, "uoccupation");
            return (Criteria) this;
        }

        public Criteria andUoccupationLike(String value) {
            addCriterion("uOccupation like", value, "uoccupation");
            return (Criteria) this;
        }

        public Criteria andUoccupationNotLike(String value) {
            addCriterion("uOccupation not like", value, "uoccupation");
            return (Criteria) this;
        }

        public Criteria andUoccupationIn(List<String> values) {
            addCriterion("uOccupation in", values, "uoccupation");
            return (Criteria) this;
        }

        public Criteria andUoccupationNotIn(List<String> values) {
            addCriterion("uOccupation not in", values, "uoccupation");
            return (Criteria) this;
        }

        public Criteria andUoccupationBetween(String value1, String value2) {
            addCriterion("uOccupation between", value1, value2, "uoccupation");
            return (Criteria) this;
        }

        public Criteria andUoccupationNotBetween(String value1, String value2) {
            addCriterion("uOccupation not between", value1, value2, "uoccupation");
            return (Criteria) this;
        }

        public Criteria andUregtimeIsNull() {
            addCriterion("uRegTime is null");
            return (Criteria) this;
        }

        public Criteria andUregtimeIsNotNull() {
            addCriterion("uRegTime is not null");
            return (Criteria) this;
        }

        public Criteria andUregtimeEqualTo(Date value) {
            addCriterion("uRegTime =", value, "uregtime");
            return (Criteria) this;
        }

        public Criteria andUregtimeNotEqualTo(Date value) {
            addCriterion("uRegTime <>", value, "uregtime");
            return (Criteria) this;
        }

        public Criteria andUregtimeGreaterThan(Date value) {
            addCriterion("uRegTime >", value, "uregtime");
            return (Criteria) this;
        }

        public Criteria andUregtimeGreaterThanOrEqualTo(Date value) {
            addCriterion("uRegTime >=", value, "uregtime");
            return (Criteria) this;
        }

        public Criteria andUregtimeLessThan(Date value) {
            addCriterion("uRegTime <", value, "uregtime");
            return (Criteria) this;
        }

        public Criteria andUregtimeLessThanOrEqualTo(Date value) {
            addCriterion("uRegTime <=", value, "uregtime");
            return (Criteria) this;
        }

        public Criteria andUregtimeIn(List<Date> values) {
            addCriterion("uRegTime in", values, "uregtime");
            return (Criteria) this;
        }

        public Criteria andUregtimeNotIn(List<Date> values) {
            addCriterion("uRegTime not in", values, "uregtime");
            return (Criteria) this;
        }

        public Criteria andUregtimeBetween(Date value1, Date value2) {
            addCriterion("uRegTime between", value1, value2, "uregtime");
            return (Criteria) this;
        }

        public Criteria andUregtimeNotBetween(Date value1, Date value2) {
            addCriterion("uRegTime not between", value1, value2, "uregtime");
            return (Criteria) this;
        }

        public Criteria andUmoneyIsNull() {
            addCriterion("uMoney is null");
            return (Criteria) this;
        }

        public Criteria andUmoneyIsNotNull() {
            addCriterion("uMoney is not null");
            return (Criteria) this;
        }

        public Criteria andUmoneyEqualTo(Long value) {
            addCriterion("uMoney =", value, "umoney");
            return (Criteria) this;
        }

        public Criteria andUmoneyNotEqualTo(Long value) {
            addCriterion("uMoney <>", value, "umoney");
            return (Criteria) this;
        }

        public Criteria andUmoneyGreaterThan(Long value) {
            addCriterion("uMoney >", value, "umoney");
            return (Criteria) this;
        }

        public Criteria andUmoneyGreaterThanOrEqualTo(Long value) {
            addCriterion("uMoney >=", value, "umoney");
            return (Criteria) this;
        }

        public Criteria andUmoneyLessThan(Long value) {
            addCriterion("uMoney <", value, "umoney");
            return (Criteria) this;
        }

        public Criteria andUmoneyLessThanOrEqualTo(Long value) {
            addCriterion("uMoney <=", value, "umoney");
            return (Criteria) this;
        }

        public Criteria andUmoneyIn(List<Long> values) {
            addCriterion("uMoney in", values, "umoney");
            return (Criteria) this;
        }

        public Criteria andUmoneyNotIn(List<Long> values) {
            addCriterion("uMoney not in", values, "umoney");
            return (Criteria) this;
        }

        public Criteria andUmoneyBetween(Long value1, Long value2) {
            addCriterion("uMoney between", value1, value2, "umoney");
            return (Criteria) this;
        }

        public Criteria andUmoneyNotBetween(Long value1, Long value2) {
            addCriterion("uMoney not between", value1, value2, "umoney");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}